﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace fqlmoney.Model
{
    public class user_order
    {
        private int _o_state;

        public int o_id { get; set; }
        public int u_id { get; set; }
        public int t_id { get; set; }
        public string t_name { get; set; }
        /// <summary>
        /// 1收入2支出
        /// </summary>
        public int o_state
        {
            get { return _o_state; }
            set
            {
                if (value == 2)
                {
                    _o_state = 2;
                }
                else
                {
                    _o_state = 1;
                }
            }
        }
        public decimal o_amount { get; set; }
        public DateTime o_time { get; set; }
        public string o_note { get; set; }
    }
}
